﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="PendingInviteDataSet" targetNamespace="http://tempuri.org/PendingInviteDataSet.xsd" xmlns:mstns="http://tempuri.org/PendingInviteDataSet.xsd" xmlns="http://tempuri.org/PendingInviteDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="TafitiConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TafitiConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.WLQuickApps.Tafiti.Data.Properties.Settings.GlobalReference.Default.TafitiConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="PendingInvitesTableAdapter" GeneratorDataComponentClassName="PendingInvitesTableAdapter" Name="PendingInvites" UserDataComponentName="PendingInvitesTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="Tafiti.dbo.PendingInvites" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[PendingInvites] ([ShelfStackID], [EmailHash]) VALUES (@ShelfStackID, @EmailHash)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@EmailHash" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="EmailHash" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT ShelfStackID, EmailHash FROM dbo.PendingInvites</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ShelfStackID" DataSetColumn="ShelfStackID" />
              <Mapping SourceColumn="EmailHash" DataSetColumn="EmailHash" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="Tafiti.dbo.PendingInvites" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetPendingInvitesForShelfStack" GetMethodModifier="Public" GetMethodName="GetPendingInvitesForShelfStack" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetPendingInvitesForShelfStack" UserSourceName="GetPendingInvitesForShelfStack">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ShelfStackID, EmailHash FROM dbo.PendingInvites 
where ShelfStackID = @shelfStackID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="shelfStackID" ColumnName="ShelfStackID" DataSourceName="Tafiti.dbo.PendingInvites" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@shelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="PendingInviteDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="PendingInviteDataSet" msprop:Generator_UserDSName="PendingInviteDataSet" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="PendingInvites" msprop:Generator_UserTableName="PendingInvites" msprop:Generator_RowDeletedName="PendingInvitesRowDeleted" msprop:Generator_TableClassName="PendingInvitesDataTable" msprop:Generator_RowChangedName="PendingInvitesRowChanged" msprop:Generator_RowClassName="PendingInvitesRow" msprop:Generator_RowChangingName="PendingInvitesRowChanging" msprop:Generator_RowEvArgName="PendingInvitesRowChangeEvent" msprop:Generator_RowEvHandlerName="PendingInvitesRowChangeEventHandler" msprop:Generator_TablePropName="PendingInvites" msprop:Generator_TableVarName="tablePendingInvites" msprop:Generator_RowDeletingName="PendingInvitesRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ShelfStackID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_UserColumnName="ShelfStackID" msprop:Generator_ColumnPropNameInRow="ShelfStackID" msprop:Generator_ColumnVarNameInTable="columnShelfStackID" msprop:Generator_ColumnPropNameInTable="ShelfStackIDColumn" type="xs:string" />
              <xs:element name="EmailHash" msprop:Generator_UserColumnName="EmailHash" msprop:Generator_ColumnPropNameInRow="EmailHash" msprop:Generator_ColumnVarNameInTable="columnEmailHash" msprop:Generator_ColumnPropNameInTable="EmailHashColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>